﻿using STF.Blog.Dtos;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace STF.Blog.IService
{
    /// <summary>
    /// 封面表
    /// </summary>
    public interface ICoverService
    {
        public Task<int> AddCoverAsync(string details,string image1,string image2,string image3);
        public Task<int> UpdateCoverAsync(int id, string details, string image1, string image2, string image3);
        public Task<int> PutTrashAsync(int id);
        public Task<int> RestoreAsync(int id);
        public Task<int> DeleteCoverAsync(int id);
        public Task<List<CoverDto>> GetAllCoverAsync(int deleteId = 1);
        public Task<List<CoverDto>> GetByNameAsync(string details, int deleteId = 1);
        public Task<CoverDto> GetByIdAsync(int id);
        public Task<CoverDto> GetBlogCoverId(string image1,int deleteId = 1);
    }
}
